package com.sdry.entity.permission;

import com.sdry.utils.PageBean;
/**
 * @author tdd
 * @version V1.0
 * @ClassName: UpmsStaffRole
 * @Description: 
 * @date 2018/7/27 10:50
 */
public class UpmsStaffRole extends PageBean{
    /**id*/
    private Long userRoleId;
    /**角色id*/
    private Long roleId;
    private UpmsRole upmsRole;
    
    public UpmsRole getUpmsRole() {
		return upmsRole;
	}

	public void setUpmsRole(UpmsRole upmsRole) {
		this.upmsRole = upmsRole;
	}

	/**员工id*/
    private Long staffId;
    private UpmsStaff upmsStaff;
    

    public UpmsStaff getUpmsStaff() {
		return upmsStaff;
	}

	public void setUpmsStaff(UpmsStaff upmsStaff) {
		this.upmsStaff = upmsStaff;
	}

	private static final long serialVersionUID = 1L;

    public Long getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(Long userRoleId) {
        this.userRoleId = userRoleId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getStaffId() {
        return staffId;
    }

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userRoleId=").append(userRoleId);
        sb.append(", roleId=").append(roleId);
        sb.append(", staffId=").append(staffId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UpmsStaffRole other = (UpmsStaffRole) that;
        return (this.getUserRoleId() == null ? other.getUserRoleId() == null : this.getUserRoleId().equals(other.getUserRoleId()))
            && (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
            && (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserRoleId() == null) ? 0 : getUserRoleId().hashCode());
        result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        return result;
    }
}